#define GET_CONFIG  "/getconf"
#define SET_CONFIG  "/setconf"
#define REG_DEVICE  "/regdev"
#define LOGIN_DEVICE  "/login"
#define COA         "/coa"
#define UPDATE  "/update"

void setconf(struct evhttp_request *req, void *arg);
void getconf(struct evhttp_request *req, void *arg);
void regdev(struct evhttp_request *req, void *arg);
void login(struct evhttp_request *req, void *arg);
void coa(struct evhttp_request *req, void *arg);

int httpServerInit(struct event_base *base, const char *addr, uint32_t port);